/**
 * Created by zhaoxk on 2017/2/24.
 * 患者信息是个对象，为保证顺序可控，单独定义了这个组件渲染患者信息
 */
import React from 'react';
import styles from './index.less';

function TitleList({
    data: {
        id,
        code,
        name,
        gender,
        age,
        entryDate,
        cost,
        insuranceType,
        insuranceCode,
        birthday,
        idCard,
        marriage,
        citizenship,
        nation,
        job,
        organization,
        connect,
    }
}) {
    return (
        <ul className={styles.normal}>
            <li><span>患者ID</span>{id}</li>
            <li><span>住院号</span>{code}</li>
            <li><span>姓名</span>{name}</li>
            <li><span>性别</span>{gender === '1' ? '男' : '女'}</li>
            <li><span>年龄</span>{age}</li>
            <li><span>入院日期</span>{entryDate}</li>
            <li><span>费用</span>{cost}</li>
            <li><span>医保类型</span>{insuranceType}</li>
            <li><span>医保号</span>{insuranceCode}</li>
            <li><span>出生日期</span>{birthday}</li>
            <li><span>身份证</span>{idCard}</li>
            <li><span>婚姻状况</span>{marriage}</li>
            <li><span>国籍</span>{citizenship}</li>
            <li><span>民族</span>{nation}</li>
            <li><span>职业</span>{job}</li>
            <li><span>工作单位</span>{organization}</li>
            <li><span>联系人</span>{connect}</li>
        </ul>
    );
}

export default TitleList;
